package com.softer.wxzj.mapper;

import com.softer.wxzj.entity.SysCorpOperator;
import com.softer.wxzj.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysCorpOperatorMapper extends BaseMapper<SysCorpOperator> {
    /**
     * 根据类型查询最大的账号
     * @param operType
     * @return
     */
    String getMaxOperNoByOperType(String operType);
    /**
     * 根据企业id删除账号
     * @param corpId
     * @return
     */
    int deleteByCorpId(String corpId);

    /**
     * 根据企业id修改账号备案状态
     * @param corpId
     * @param recordState
     * @return
     */
    int updateRecordStateByCorpId(@Param("corpId") String corpId,@Param("recordState") String recordState);
}